package com.arpa.oms.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * OMS出库单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-07
 */
@Data
@ApiModel(value="OmsInventoryDTO对象", description="OMS库存单")
public class OmsInventoryDTO extends BasicEntity {

    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;
    @ApiModelProperty(value = "仓库标识集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "商品标识")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;


    @ApiModelProperty(value = "数量(下限)")
    private BigDecimal quantityStart;

    @ApiModelProperty(value = "数量（上限）")
    private BigDecimal quantityEnd;



    @ApiModelProperty(value = "占用数量")
    private BigDecimal useQuantity;

    @ApiModelProperty(value = "占用数量(下线)")
    private BigDecimal useQuantityStart;
    @ApiModelProperty(value = "占用数量（上线）")
    private BigDecimal useQuantityEnd;

    @ApiModelProperty(value = "不可用数量")
    private BigDecimal contUseQuantity;


    @ApiModelProperty(value = "不可用数量（下线）")
    private BigDecimal contUseQuantityStart;

    @ApiModelProperty(value = "不可用数量（上限）")
    private BigDecimal contUseQuantityEnd;



    @ApiModelProperty(value = "可用数量（下线）")
    private BigDecimal quantityAvailableStart;

    @ApiModelProperty(value = "可用数量（上限）")
    private BigDecimal quantityAvailableEnd;
    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "平均单价")
    private BigDecimal averageUnitPrice;

    @ApiModelProperty(value = "库存金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "库存金额（下线）")
    private BigDecimal totalAmountStart;
    @ApiModelProperty(value = "库存金额（上线）")
    private BigDecimal totalAmountEnd;


    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
